Help with this JET Sql Query [SOLVED]

Posted by yae on Stack Overflow See other posts from Stack Overflow or by yae
Published on 2010-06-17T14:26:57Z Indexed on 2010/06/17 15:03 UTC
Read the original article Hit count: 196

Filed under:
|
|
|

Hi:

I need help to do this query select.

for example I have these fields:

  • idInvoice
  • date
  • amount

Depending of the date I need multiply the field "amount" for x number or other one.

For example, if the date is less 01/01/2010 to multiply for 20 . But if it is major or equal to multiply for 35

Select idInvoice, date, amount, amount * varNumber from invoices

© Stack Overflow or respective owner

Related posts about sql

Related posts about ms-access